package com.sansecy.mocklocationtest;

import android.app.Application;
import android.content.Context;

import com.didi.virtualapk.PluginManager;
import com.sansecy.mocklocationtest.hook.HookHelper;

public class App extends Application {

    private static App mApp;

    @Override
    public void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        PluginManager.getInstance(base).init();
//        try {
//            HookHelper.hookAMS();
//            HookHelper.hookHandler();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mApp = this;
    }

    public static App getApp() {
        return mApp;
    }

    public String getCustomFilename() {
        return "1";
    }
}
